.class Lcom/alipay/android/app/sdk/AliPay$3$1;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field final synthetic this$1:Lcom/alipay/android/app/sdk/AliPay$3;

.field private final synthetic val$isWap:Z


# direct methods
.method constructor <init>(Lcom/alipay/android/app/sdk/AliPay$3;Z)V
    .locals 0

    iput-object p1, p0, Lcom/alipay/android/app/sdk/AliPay$3$1;->this$1:Lcom/alipay/android/app/sdk/AliPay$3;

    iput-boolean p2, p0, Lcom/alipay/android/app/sdk/AliPay$3$1;->val$isWap:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4

    iget-boolean v0, p0, Lcom/alipay/android/app/sdk/AliPay$3$1;->val$isWap:Z

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/alipay/android/app/sdk/AliPay$3$1;->this$1:Lcom/alipay/android/app/sdk/AliPay$3;

    #getter for: Lcom/alipay/android/app/sdk/AliPay$3;->this$0:Lcom/alipay/android/app/sdk/AliPay;
    invoke-static {v1}, Lcom/alipay/android/app/sdk/AliPay$3;->access$0(Lcom/alipay/android/app/sdk/AliPay$3;)Lcom/alipay/android/app/sdk/AliPay;

    move-result-object v1

    #getter for: Lcom/alipay/android/app/sdk/AliPay;->mContext:Landroid/app/Activity;
    invoke-static {v1}, Lcom/alipay/android/app/sdk/AliPay;->access$0(Lcom/alipay/android/app/sdk/AliPay;)Landroid/app/Activity;

    move-result-object v1

    const-class v2, Lcom/alipay/android/app/sdk/WapPayActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string v2, "url"

    iget-object v3, p0, Lcom/alipay/android/app/sdk/AliPay$3$1;->this$1:Lcom/alipay/android/app/sdk/AliPay$3;

    #getter for: Lcom/alipay/android/app/sdk/AliPay$3;->this$0:Lcom/alipay/android/app/sdk/AliPay;
    invoke-static {v3}, Lcom/alipay/android/app/sdk/AliPay$3;->access$0(Lcom/alipay/android/app/sdk/AliPay$3;)Lcom/alipay/android/app/sdk/AliPay;

    move-result-object v3

    #getter for: Lcom/alipay/android/app/sdk/AliPay;->mUrl:Ljava/lang/String;
    invoke-static {v3}, Lcom/alipay/android/app/sdk/AliPay;->access$2(Lcom/alipay/android/app/sdk/AliPay;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "timeout"

    iget-object v3, p0, Lcom/alipay/android/app/sdk/AliPay$3$1;->this$1:Lcom/alipay/android/app/sdk/AliPay$3;

    #getter for: Lcom/alipay/android/app/sdk/AliPay$3;->this$0:Lcom/alipay/android/app/sdk/AliPay;
    invoke-static {v3}, Lcom/alipay/android/app/sdk/AliPay$3;->access$0(Lcom/alipay/android/app/sdk/AliPay$3;)Lcom/alipay/android/app/sdk/AliPay;

    move-result-object v3

    #getter for: Lcom/alipay/android/app/sdk/AliPay;->mTimeout:I
    invoke-static {v3}, Lcom/alipay/android/app/sdk/AliPay;->access$3(Lcom/alipay/android/app/sdk/AliPay;)I

    move-result v3

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/alipay/android/app/sdk/AliPay$3$1;->this$1:Lcom/alipay/android/app/sdk/AliPay$3;

    #getter for: Lcom/alipay/android/app/sdk/AliPay$3;->this$0:Lcom/alipay/android/app/sdk/AliPay;
    invoke-static {v1}, Lcom/alipay/android/app/sdk/AliPay$3;->access$0(Lcom/alipay/android/app/sdk/AliPay$3;)Lcom/alipay/android/app/sdk/AliPay;

    move-result-object v1

    #getter for: Lcom/alipay/android/app/sdk/AliPay;->mContext:Landroid/app/Activity;
    invoke-static {v1}, Lcom/alipay/android/app/sdk/AliPay;->access$0(Lcom/alipay/android/app/sdk/AliPay;)Landroid/app/Activity;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    :goto_0
    return-void

    :cond_0
    sget-object v1, Lcom/alipay/android/app/sdk/AliPay;->sLock:Ljava/lang/Object;

    monitor-enter v1

    const/16 v0, 0x1771

    :try_start_0
    invoke-static {v0}, Lcom/alipay/android/app/sdk/ResultStatus;->getResultState(I)Lcom/alipay/android/app/sdk/ResultStatus;

    move-result-object v0

    invoke-virtual {v0}, Lcom/alipay/android/app/sdk/ResultStatus;->getStatus()I

    move-result v2

    invoke-virtual {v0}, Lcom/alipay/android/app/sdk/ResultStatus;->getMsg()Ljava/lang/String;

    move-result-object v0

    const-string v3, ""

    invoke-static {v2, v0, v3}, Lcom/alipay/android/app/sdk/Result;->parseResult(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/alipay/android/app/sdk/Result;->setPayResult(Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :try_start_1
    sget-object v0, Lcom/alipay/android/app/sdk/AliPay;->sLock:Ljava/lang/Object;

    invoke-virtual {v0}, Ljava/lang/Object;->notify()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :goto_1
    :try_start_2
    monitor-exit v1

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw v0

    :catch_0
    move-exception v0

    :try_start_3
    invoke-static {v0}, Lcom/alipay/android/app/util/LogUtils;->printExceptionStackTrace(Ljava/lang/Object;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_1
.end method
